package com.cm386.final_project_timezonealert.model;

import android.app.TimePickerDialog;
import android.content.Context;
import android.widget.TimePicker;

public class MyTimePickerDialog extends TimePickerDialog {
	private int updateHour;
	private int updateMinute;
	private String eventCityName;
	private String eventCityTimeZoneId;
	
	public MyTimePickerDialog(Context context, int theme,
			OnTimeSetListener callBack, int hourOfDay, int minute,
			boolean is24HourView) {
		super(context, theme, callBack, hourOfDay, minute, is24HourView);
		// TODO Auto-generated constructor stub
	}
	
	public MyTimePickerDialog(Context context, OnTimeSetListener callBack, int hourOfDay, int minute,
			boolean is24HourView, String eventCityName, String eventCityTimeZoneId) {
		this(context, callBack, hourOfDay, minute, is24HourView);
		this.eventCityName = eventCityName;
		this.eventCityTimeZoneId = eventCityTimeZoneId;
	}
	
	public MyTimePickerDialog(Context context, OnTimeSetListener callBack, int hourOfDay, int minute,
			boolean is24HourView) {
		super(context, callBack, hourOfDay, minute, is24HourView);
		this.updateHour   = hourOfDay;
		this.updateMinute = minute;
		// TODO Auto-generated constructor stub
	}
	
	@Override
	protected void onStop() {
		// Override onStop() of parent
		//super.onStop();
	}
	
	@Override
	public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {
		this.updateHour   = hourOfDay;
		this.updateMinute = minute;
		// TODO Auto-generated method stub
		super.onTimeChanged(view, hourOfDay, minute);
	}

	/**
	 * @return the updateHour
	 */
	public int getUpdateHour() {
		return updateHour;
	}

	/**
	 * @param updateHour the updateHour to set
	 */
	public void setUpdateHour(int updateHour) {
		this.updateHour = updateHour;
	}

	/**
	 * @return the updateMinute
	 */
	public int getUpdateMinute() {
		return updateMinute;
	}

	/**
	 * @param updateMinute the updateMinute to set
	 */
	public void setUpdateMinute(int updateMinute) {
		this.updateMinute = updateMinute;
	}

	/**
	 * @return the eventCityName
	 */
	public String getEventCityName() {
		return eventCityName;
	}

	/**
	 * @param eventCityName the eventCityName to set
	 */
	public void setEventCityName(String eventCityName) {
		this.eventCityName = eventCityName;
	}

	/**
	 * @return the eventCityTimeZoneId
	 */
	public String getEventCityTimeZoneId() {
		return eventCityTimeZoneId;
	}

	/**
	 * @param eventCityTimeZoneId the eventCityTimeZoneId to set
	 */
	public void setEventCityTimeZoneId(String eventCityTimeZoneId) {
		this.eventCityTimeZoneId = eventCityTimeZoneId;
	}
}
